package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.Destination;
import cn.wolfcode.wolf2w.domain.TravelComment;
import cn.wolfcode.wolf2w.domain.UserInfo;
import cn.wolfcode.wolf2w.queryObject.TravelCommentQueryObject;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ITravelCommentService {
    void save(TravelComment travelComment, UserInfo userInfo);
    void update(TravelComment travelComment);
    void delete(String id);
    TravelComment get(String id);
    List<TravelComment> list();
    Page<TravelComment> query(TravelCommentQueryObject qo);

    /**
     * 根据游记 id 查询对应的评论
     * @param travelId
     * @return
     */
    List<TravelComment> queryByTravelId(String travelId);
}
